package com.mjlf.spring.sys;

import org.springframework.beans.factory.InitializingBean;

/**
 * @ClassName MyInitializingBean
 * @auther mjlf
 * @Date 2019/7/31 10:53
 * @Description  初始化bean前调用异常，获取到PropertiesSet之后，实例化Bean前会执行一次
 */
public class MyInitializingBean implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("invoke afterPropertiesSet");
    }
}
